TEMPLATE = lib

RC_FILE = editor/resources/surrounddelay.rc

win32 {
  DEFINES += _WINDOWS \
             _USRDLL \
             _WINDLL \
             SURROUNDDELAY_EXPORTS \
             _CRT_SECURE_NO_DEPRECATE=1

  debug {
    DEFINES += _DEBUG
  }

  QMAKE_CXXFLAGS += -WX- \
                    -wd4100 \      # VST SDK is full of un-referenced formal parameters
                    -Oy- \
                    -fp:precise \
                    -Zc:forScope \
                    -Gd \
                    -TP

  QMAKE_CXXFLAGS_DEBUG += -RTC1 \ # Run time checks
                          -Od \   # Disable optimization
                          -GS \   # Buffers security check
                          -Gm \   # Minimal rebuild
                          -Zi     # Generate complete debugging information

  QMAKE_LFLAGS += -INCREMENTAL \
                  "kernel32.lib" \
                  "user32.lib" \
                  "gdi32.lib" \
                  "winspool.lib" \
                  "comdlg32.lib" \
                  "advapi32.lib" \
                  "shell32.lib" \
                  "ole32.lib" \
                  "oleaut32.lib" \
                  "uuid.lib" \
                  "odbc32.lib" \
                  "odbccp32.lib" \
                  -SUBSYSTEM:WINDOWS \
                  -TLBID:1 \
                  -MACHINE:X86 \
                  -ERRORREPORT:QUEUE
}

DEF_FILE = ../vstplug.def

OTHER_FILES += ../vstplug.def \
               editor/resources/bmp00130.bmp \
               editor/resources/bmp00129.bmp \
               editor/resources/bmp00128.bmp \
               editor/resources/surrounddelay.rc

HEADERS += public.sdk/source/vst2.x/audioeffectx.h \
           public.sdk/source/vst2.x/audioeffect.h \
           public.sdk/source/vst2.x/aeffeditor.h \
           pluginterfaces/vst2.x/vstfxstore.h \
           pluginterfaces/vst2.x/aeffectx.h \
           pluginterfaces/vst2.x/aeffect.h  \
           public.sdk/samples/vst2.x/adelay/surrounddelay.h  \
           public.sdk/samples/vst2.x/adelay/editor/sdeditor.h \
           aeffguieditor.h \
           vstgui.h \
           vstcontrols.h

SOURCES += public.sdk/source/vst2.x/vstplugmain.cpp \
           public.sdk/source/vst2.x/audioeffectx.cpp \
           public.sdk/source/vst2.x/audioeffect.cpp \
           aeffguieditor.cpp \
           vstgui.cpp \
           vstcontrols.cpp \
           adelay.cpp \
           surrounddelay.cpp \
           editor/sdeditor.cpp

DEPENDPATH += ../../../SDKs/vstsdk2.4/  \
              ../../../SDKs/vstsdk2.4/public.sdk/source/vst2.x  \
              ../../../SDKs/vstsdk2.4/vstgui.sf/vstgui

INCLUDEPATH += ../../../SDKs/vstsdk2.4/  \
               ../../../SDKs/vstsdk2.4/public.sdk/source/vst2.x  \
               ../../../SDKs/vstsdk2.4/vstgui.sf/vstgui
